/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package seso;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 *
 * @author Administrator
 */
@Embeddable
public class M3ShOrderSKUPK implements Serializable {
    @Basic(optional = false)
    @Column(name = "OrderNo")
    private int orderNo;
    @Basic(optional = false)
    @Column(name = "OrderLine")
    private int orderLine;

    public M3ShOrderSKUPK() {
    }

    public M3ShOrderSKUPK(int orderNo, int orderLine) {
        this.orderNo = orderNo;
        this.orderLine = orderLine;
    }

    public int getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(int orderNo) {
        this.orderNo = orderNo;
    }

    public int getOrderLine() {
        return orderLine;
    }

    public void setOrderLine(int orderLine) {
        this.orderLine = orderLine;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (int) orderNo;
        hash += (int) orderLine;
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof M3ShOrderSKUPK)) {
            return false;
        }
        M3ShOrderSKUPK other = (M3ShOrderSKUPK) object;
        if (this.orderNo != other.orderNo) {
            return false;
        }
        if (this.orderLine != other.orderLine) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "seso.M3ShOrderSKUPK[ orderNo=" + orderNo + ", orderLine=" + orderLine + " ]";
    }
    
}
